package com.chenkaiewi.feignfallbackdemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Autowired
    RemoteDataFeign remoteDataFeign;

    @GetMapping("fallback2")
    public String fallback2(){
        return remoteDataFeign.dataFromRemoteService();
    }

}
